

package xp2p.inter.client;

import java.io.File;
import java.io.IOException;
import java.net.UnknownHostException;

import xp2p.inter.msg.FilePublishMessage;

public class FileService
{
	private ClientRetryer client;
	
	public void Publish(File file, String uniqueName) throws InnerException
	{
		FilePublishMessage msg = new FilePublishMessage();
		msg.UniqueName = uniqueName;
		msg.Name = file.getAbsolutePath();
		client.send(msg);
	}
}



